<?php /* Smarty version Smarty-3.1.8, created on 2012-11-05 23:00:58
         compiled from "D:\personalweb\personal\tomatoframework\tomatocli/template\service.class.tpl" */ ?>
<?php /*%%SmartyHeaderCode:18225097d4aae99a60-95038735%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '7ea8c87a5b5887f9441c94f610a0818a38f009ef' => 
    array (
      0 => 'D:\\personalweb\\personal\\tomatoframework\\tomatocli/template\\service.class.tpl',
      1 => 1351492725,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '18225097d4aae99a60-95038735',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'resourceName' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.8',
  'unifunc' => 'content_5097d4aaec1136_50678490',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5097d4aaec1136_50678490')) {function content_5097d4aaec1136_50678490($_smarty_tpl) {?><<?php ?>?php

/*
 * Tomato Framework
 * 
 * Copyright 2012-2012 Luax.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * 
 *      http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 * 
 * @link http://www.tomatoframework.com
 * @link http://www.luaxlou.com
 * @version $Id$
 */

/**
 * 
 * 
 * @package tomatoapp
 * @author Luax <luaxcn@gmail.com>
 */
class <?php echo ucfirst($_smarty_tpl->tpl_vars['resourceName']->value);?>
Service
{
    /**
     *
     * @var <?php echo ucfirst($_smarty_tpl->tpl_vars['resourceName']->value);?>
Dao
     */
    public $<?php echo $_smarty_tpl->tpl_vars['resourceName']->value;?>
Dao;
 
    public function findAll()
    {
        return $this-><?php echo $_smarty_tpl->tpl_vars['resourceName']->value;?>
Dao->findAll();
    }
    
    public function find($id)
    {
 
        return $this-><?php echo $_smarty_tpl->tpl_vars['resourceName']->value;?>
Dao->find($id);
    }
    
    public function save($<?php echo $_smarty_tpl->tpl_vars['resourceName']->value;?>
)
    {
        return $this-><?php echo $_smarty_tpl->tpl_vars['resourceName']->value;?>
Dao->save($<?php echo $_smarty_tpl->tpl_vars['resourceName']->value;?>
);
    }
    
    public function update($<?php echo $_smarty_tpl->tpl_vars['resourceName']->value;?>
)
    {
        return $this-><?php echo $_smarty_tpl->tpl_vars['resourceName']->value;?>
Dao->update($<?php echo $_smarty_tpl->tpl_vars['resourceName']->value;?>
);
    }
 
    public function delete($id)
    {
 
        return $this-><?php echo $_smarty_tpl->tpl_vars['resourceName']->value;?>
Dao->delete($id);
    }

}

?<?php ?>><?php }} ?>